<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" bgcolor="#333333"><table width='955' border='0' cellpadding='0' cellspacing='0' class="marup">
      <tr class="nav header">
        <td width='40%' valign="middle"><img src='<?php echo base_url()?>images/sl_05.png' alt="" /></td>
        <td>
        
        <form id="form1" name="form1" method="post" action="<?php echo site_url(array('signIn','process_login'))?>">
          <table border="0" cellspacing="2" cellpadding="3">
            <tr>
              <td style="color:#F90" align="left" valign="middle"><strong>Username :</strong></td>
              <td valign="middle"><input name="username" type="text" id="username" maxlength="25" /></td>
              <td style="color:#F90" valign="middle"><b>Password :</b></td>
              <td valign="middle"><input name="password" type="password" id="password" maxlength="35" /></td>
              <td valign="middle"><input type="submit" name="button" id="button" value="Login" class="uiButton uiSave" /></td>
            </tr>
            <tr>
              <td align="right" valign="middle">&nbsp;</td>
              <td align="left" valign="middle"><span style="color:#F90">
                <input type="checkbox" name="remember" id="remember" value="<?php echo md5('ok');?>" />
              Remember me</span></td>
              <td align="right" valign="middle">&nbsp;</td>
              <td style="color:#F90" align="left" valign="middle">   
              <?php 
              $key = $this->uri->segment(3,0);
              if($key!=""){
	              $fail = md5('failed');
	              $fatal = md5('fatal');
		              switch($key){
		              	case $fatal : echo "<div style='color:red'><b>You don't have permission</b></div>";
		              	break;
		              	case $fail : echo "<div style='color:red'><b>Wrong username and password</b></div>";
		              	break;	              	
		              	default: echo "";
		              	break;
		              }
              }
              ?>
              </td>
              <td align="right" valign="middle">&nbsp;</td>
            </tr>
          </table>
        </form>
        
        
        </td>
      </tr>
    </table></td>
  </tr>
</table>
